<template>
<div>
    <el-table :data="orderList" border>
        <el-table-column prop="order_no" label="订单号"></el-table-column>
        <el-table-column prop="user.realname" label="签单销售"></el-table-column>
        <el-table-column prop="vip.event_date" label="预产期"></el-table-column>
        <el-table-column prop="bom.store.title" label="成交门店"></el-table-column>
        <el-table-column prop="bom.totals" label="合同金额"></el-table-column>
        <el-table-column prop="bom.sign_date" label="签单时间"></el-table-column>
        <el-table-column prop="create_time" label="创建时间"></el-table-column>
    </el-table>

    <orderDetailInner ref="orderDetailRef"></orderDetailInner>
</div>
</template>

<script>
import {
    getOrderListApi
} from '@/api/customer/member';

import orderDetailInner from '@/views/order/detail/index';

export default {
    components: {
        orderDetailInner
    },
    name: "OrderList",
    data() {
        return {
            orderList: []
        }
    },
    methods: {
        getOrderList(member_id) {
            getOrderListApi({
                member_id
            }).then(res => {
                this.orderList = res.data.list;
            })
        },
        showOrderDetail(order_id) {
            this.$refs.orderDetailRef.showDrawer(order_id);
        }
    }
}
</script>
